build: prepare
	gcc main.c -o bin/program -lncurses

run: build
	./bin/program

build-debug: prepare
	gcc -g main.c -o bin/program-dbg -lncurses

run-debug: build-debug
	gdb bin/program-dbg

clean:
	rm -rf bin/

prepare:
	mkdir -p bin/
